package com.lk.template.config;

import com.lk.template.graphql.Query;
import graphql.kickstart.tools.SchemaParser;
import graphql.schema.GraphQLSchema;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author lk
 * @date 2024/7/25 14:50
 */
@Configuration
public class GraphQLConfig {

//  @Bean
//  public GraphQLSchema schema() {
//    return SchemaParser.newParser()
//      .file("classpath:schema.graphqls") // 指定GraphQL Schema文件的位置
//      .resolvers(new Query())            // 注册Resolver
//      .build()
//      .makeExecutableSchema();
//  }
}
